package org.han.permission.service.impl;

import org.han.base.service.impl.BaseServiceImpl;
import org.han.permission.domain.Menu;
import org.han.permission.mapper.MenuMapper;
import org.han.permission.service.IMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements IMenuService {
    @Resource
    private MenuMapper mapper;
    @Override
    public List<Menu> tree(Long userId) {
        return mapper.tree(userId);
    }

}
